@import 'variables.less';

.ivu-layout {
    background-color: #f1f1f1;
}

.flex-end {
    display: flex;
    justify-content: flex-end;
}

.flex-align-center {
    display: flex;
    align-items: center;
}

.ellipsis_text {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    overflow: hidden;
    word-break: break-all;
    text-overflow: ellipsis;
    -webkit-box-orient: vertical;
}

.padding-0 {
    padding: 0 !important;
}

.padding-right-0 {
    padding-right: 0 !important;
}

.padding-left-14 {
    padding-left: 14px !important;
}

.text-center {
    text-align: center;
}

.color-primary {
    color: @primary_color;
}

.margin-right-25 {
    margin-right: 25px;
}

.margin-top-25 {
    margin-top: 25px;
}

.ivu-btn-text:focus, .ivu-btn-text:hover {
    box-shadow: none;
    background-color: transparent
}

.ivu-btn-primary {
    color: #fff;
}

.ivu-breadcrumb  {
    .ivu-breadcrumb-item-link {
        color: rgba(0, 0, 0, 0.45);
    }
    & > span:last-child .ivu-breadcrumb-item-link {
        font-weight: 400;
        color: rgba(0, 0, 0, 0.65);
    }
    .ivu-breadcrumb-item-separator {
        color: rgba(0, 0, 0, 0.45);
    }
}

.ivu-badge-count {
    box-shadow: none;
}

.system-breadcrumb {
    padding: 16px 16px 16px 32px;
    border-bottom: 1px solid #e9e9e9;
}

.ivu-table-header thead tr {
    color: rgba(0,0,0,0.85);
    border: 1px solid #e8eaec;
    th {
        font-weight: 700;
        background-color: #FBF5F5;
    }
}

.action-btns {
    button {
        color: @primary_color;
        padding: 0;
        margin-right: 10px;
        &:last-child {
            margin-right: 0;
        }
    }
}

.no-label {
    .ivu-form-item-content {
        margin-left: 0 !important;
    }
}

.container {
    height: 100%;
    overflow: hidden;
    margin-left: 20px;
    margin-right: 20px;
    // display: flex;
    flex: 1;
    > .inner {
        height: calc(100% - 40px - 20px);
        overflow-y: auto;
        overflow-x: hidden;
        margin-top: 20px;
        padding: 20px 16px;
        background-color: #fff;
    }
}

.sub-container {
    > .inner {
        padding: 0;
    } 
}

.system-form {
    width: 800px;
    padding: 35px 30px 20px;
    &.system-form-large {
        width: 900px;
    }
    .common-input {
        width: 400px;
    }
    .wrapper {
        > div {
            overflow: hidden;
        }
    }
}

.tool-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    &.right {
        justify-content: flex-end;
    }
    .ivu-select {
        width: 200px;
    }
    .search-bar {
        .search-input {
            width: 260px;
        }
        .search-btn {
            margin-left: 15px;
        }
        .ivu-form-item-label {
            padding-right: 5px;
        }
        .ivu-form-item {
            margin-right: 0;
            margin-bottom: 0;
            vertical-align: middle;
        }
    }
}

.spin-modal {
    display: flex;
    align-items: center;
    justify-content: center;
    .ivu-modal{
        top: 0;
    }
    .ivu-modal-content {
        min-height: 100px;
    }
    .spin-text {
        margin-top: 8px;
    }
}

.spin-icon-load {
    animation: spin-load 1s linear infinite;
}
@keyframes spin-load {
    from { transform: rotate(0deg); }
    50%  { transform: rotate(180deg); }
    to   { transform: rotate(360deg); }
}

/*****  login page  *****/
.login-container {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: url(../images/login_bg.jpg) no-repeat top center;
    background-size: cover;
    .title {
        font-size: 32px;
        font-weight: 600;
        text-align: center;
        color: #fff;
        padding-top: 200px;
        padding-bottom: 60px;
    }
    input::-webkit-input-placeholder {
        color: #fff !important;
    }
    input:-webkit-autofill,
    input:-webkit-autofill:hover,
    input:-webkit-autofill:focus,
    input:-webkit-autofill:active {
        -webkit-text-fill-color: #fff !important;
        transition-delay: 99999s;
        transition: color 99999s ease-out, background-color 99999s ease-out;
    }

    .ivu-input {
        background-color: transparent;
        border: none;
        border-bottom: 1px solid @border_color;
        border-radius: 0;
        font-size: 18px;
        color: #fff;
    }
    .ivu-input:focus {
        box-shadow: none;
    }
    .ivu-input-prefix i, .ivu-input-suffix i {
        color: #fff;
        font-size: 20px;
    }
    .ivu-form-inline .ivu-form-item {
        margin-right: 8px;
        &:last-of-type {
            margin-right: 0;
        }
    }
    .verCode {
        width: 100px;
    }
    .rand-pic {
        width: 100px;
        height: 32px;
        display: inline-block;
        vertical-align: middle;
        cursor: pointer;
        margin-left: 10px;
    }
    .login-btns {
        width: 164px;
        margin: 60px auto 0;
        .login-btn {
            font-size: 20px;
            font-weight: bold;
            background-color: rgba(253, 132, 74, 0.7);
            border-color: transparent;
        }
    }
    .ivu-form-item-error-tip {
        color: #fff;
        font-size: 12px;
    }
    .ivu-form-item-error .ivu-input:hover, .ivu-form-item-error .ivu-input:focus {
        border-color: #fff;
    }

    .ivu-input-icon {
        color: rgba(255, 255, 255, 0.8);
    }

    .system-footer {
        width: 100%;
        position: fixed;
        left: 0;
        bottom: 0;
        z-index: 100;
        color: rgba(255,255,255,0.88);
        background-color: transparent;
    }
}

/***** home page *****/
.home-container {
    > .inner {
        height: calc(100% - 20px);
        padding: 0;
        background-color: transparent;
    }
    .common-card {
        height: 250px;
        margin-bottom: 16px;
        .ivu-card-head {
            background-color: #FBF5F5;
        }
        .card-title {
            font-weight: 700;
            color: #333;
        }
        .ivu-card-body {
            padding: 0px 20px;
            background-color: #fff;
        }
        &.height-auto {
            height: auto;
        }
        &.user-card {
            height: auto;
            .content {
                padding: 16px;
                display: flex;
                justify-content: space-between;
                .user-info {
                    display: flex;
                    align-items: flex-start;
                    flex: 2;
                    .user-profile {
                        width: 56px;
                        margin-right: 20px;
                    }
                    .user-content {
                        flex: 1;
                        .user-name {
                            font-size: 20px;
                            color: #333;
                            margin-bottom: 12px;
                        }
                        .user-org {
                            font-size: 14px;
                            color: rgba(0, 0, 0, 0.45);
                        }
                    }
                }
                .user-stat {
                    display: flex;
                    align-items: center;
                    .ivu-divider, .ivu-divider-vertical {
                        height: 38px;
                        margin: 0 30px;
                    }
                    .user-item {
                        display: flex;
                        flex-direction: column;
                        align-items: center;
                       .user-label {
                            font-size: 14px;
                            color: rgba(0, 0, 0, 0.45);
                        }
                        .user-value {
                            font-size: 30px;
                            color: rgba(0, 0, 0, 0.85);
                        }
                    }
                }
            }
        }
        .no-data {
            text-align: center;
            margin-top: 20px;
        }
        .list-item {
            padding: 10px 0;
            border-bottom: 1px solid #e8eaec;
            cursor: pointer;
            &:last-child {
                border-bottom: none;
            }
        }
        .list-title {
            margin-bottom: 5px;
            font-weight: 650;
            color: rgba(0, 0, 0, 0.85);
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        .list-desc {
            color: rgba(0, 0, 0, 0.45);
            span:first-child {
                margin-right: 5px;
            }
        }
    }

    .ivu-row:last-of-type {
        .common-card {
            margin-bottom: 0;
        }
    }
}

/***** job page *****/
.job-container {
    .ivu-tabs-bar {
        border-bottom: none;
    }
    .ivu-tabs-nav .ivu-tabs-tab {
        padding-left: 10px;
        padding-right: 10px;
        color: rgba(0, 0, 0, 0.65);
    }
    .job-list {
        display: flex;
        flex-wrap: wrap;
        .job-item {
            height: 168px;
            flex-basis: calc(25% - 20px);
            margin-right: 20px;
            margin-top: 20px;
            background-color: #FBF5F5;
            border: 1px solid #e6e6e6;
            border-radius: 4px;
            position: relative;
            cursor: pointer;
            &:nth-of-type(4n) {
                margin-right: 0px;
            }
            .job-dept {
                font-size: 16px;
                color: rgba(0, 0, 0, 0.85);
                font-weight: 650;
                padding: 20px 0 12px 45px;
            }
           .job-detail {
                display: flex;
                padding-left: 45px;
                .job-group {
                    margin-right: 20px;
                    &:last-child {
                        margin-right: 0;
                    }
                }
                .job-label {
                    font-size: 12px;
                    color: rgba(0, 0, 0, 0.45);
                }
                .job-value {
                    font-size: 24px;
                    color: rgba(0, 0, 0, 0.65);
                    font-weight: 700;
                }
            }
            .job-btn {
                position: absolute;
                bottom: 0;
                left: 0;
                width: 100%;
                border-radius: 0 0 4px 4px;
                font-size: 12px;
            }
        }
        .job-item-create {
            border-style: dashed;
            display: flex;
            align-items: center;
            justify-content: center;
            .job-create {
                color: rgba(0, 0, 0, 0.45);
                text-align: center;
                line-height: 1.5;
            }
        }
    }
}

/***** job detail page *****/
.job-detail-container {
    text-align: center;
    .title {
        font-size: 18px;
    }
    .time {
        font-size: 12px;
        color: #999;
        margin-top: 10px;
    }
    .content {
        min-height: 300px;
        font-size: 14px;
        text-indent: 2em;
        text-align: left;
        margin: 20px 0;
    }
}

/***** learning file page *****/
.learning-container {
    > .inner {
        td.table-filename {
            color: @primary_color;
        }
    }
}

.detail-content {
    .body {
        margin-bottom: 24px;
    }
    .row {
        .flex-align-center;
        margin-bottom: 10px;
    }
    .cell {
        .flex-align-center;
    }
    .label {
        flex-basis: 95px;
        line-height: 30px;
    }
    .value {
        .ellipsis_text;
        flex: 1;
        padding-right: 5px;
    }
}

.detail-container {
    .header-avatar {
        width: 114px;
        height: 114px;
        border-radius: 50%;
        border: 1px solid #eee;
        margin: 0 auto 40px;
        overflow: hidden;
        img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
    }
}

.system-detail {
    border-left: 1px solid #ddd;
    border-top: 1px solid #ddd;
    li {
        display: flex;
        border-bottom: 1px solid #ddd;
        line-height: 40px;
        position: relative;
        i {
            color: #f00;
            background: #f3f3f3;
            float: left;
            font-weight: 660;
            font-size: 17px;
            position: absolute;
            left: 15px;
            top: 4px;
            height: 10px;
        }
        div {
            flex: 1;
            display: flex;
            & > label {
                width:156px;
                display: inline-block;
                border-right: 1px solid #ddd;
                text-align: center;
                background: #f3f3f3;
                position: relative;
            }
            span {
                display: inline-block;
                border-right: 1px solid #ddd;
                flex: 3;
                text-align: center;
            }
        }
    }
}

.system-detail + .btn-back {
    margin-top: 40px;
}

.vjs-custom-skin > .video-js .vjs-big-play-button{
    border-radius: 50%;
    width: 70px;
    line-height: 70px;
}
.vjs-big-play-button{
    
    background: rgba(43, 51, 63, 0.7) !important;
}
.short-input{
    width:150px !important;
}
.ivu-message{
    top:15% !important;
}